<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Inpainting:  Fichier source de /home/r0ots/Prog/Master/m2/inpainting/include/Pixel.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>/home/r0ots/Prog/Master/m2/inpainting/include/Pixel.h</h1><a href="_pixel_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef PIXEL_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define PIXEL_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef byte</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">double</span> byte;
<a name="l00011"></a>00011 <span class="preprocessor">#endif</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00019"></a><a class="code" href="class_pixel.html">00019</a> <span class="keyword">class </span><a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>
<a name="l00020"></a>00020 {
<a name="l00021"></a>00021 <span class="keyword">public</span> :
<a name="l00031"></a>00031         <a class="code" href="class_pixel.html#a5ff62820a5492f30a20acf22453fa3cf" title="Constructeur.">Pixel</a>( byte _r=0, byte _v=0, byte _b=0 );
<a name="l00039"></a>00039         <a class="code" href="class_pixel.html#a5ff62820a5492f30a20acf22453fa3cf" title="Constructeur.">Pixel</a>(<span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>&amp; p);
<a name="l00040"></a>00040 
<a name="l00046"></a>00046         <a class="code" href="class_pixel.html#a30f6aaf9a1d8792245070860546fa365" title="Destructeur.">~Pixel</a>();
<a name="l00047"></a>00047 
<a name="l00055"></a>00055         byte <a class="code" href="class_pixel.html#aa9d438f91e132e8bbd3e48d5ec16d28d" title="Acceseur rouge.">getR</a>();
<a name="l00063"></a>00063         byte <a class="code" href="class_pixel.html#a5e6773020fe20befdf439375de63c37d" title="Acceseur vert.">getV</a>();
<a name="l00071"></a>00071         byte <a class="code" href="class_pixel.html#a38a664a5ff4212be27d12e9672674e52" title="Acceseur bleu.">getB</a>();
<a name="l00072"></a>00072         
<a name="l00073"></a>00073         <span class="keywordtype">void</span> N();
<a name="l00074"></a>00074         
<a name="l00075"></a>00075         <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a> &amp;operator+=(<span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a> &amp;);
<a name="l00076"></a>00076         <span class="keyword">friend</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a> operator*(<span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>&amp;, <span class="keyword">const</span> <span class="keywordtype">double</span>&amp;);
<a name="l00077"></a>00077         <span class="keyword">friend</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a> operator+(<span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>&amp;, <span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>&amp;);
<a name="l00078"></a>00078         <span class="keyword">friend</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a> operator-(<span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>&amp;, <span class="keyword">const</span> <a class="code" href="class_pixel.html" title="Classe Pixel int RVB.">Pixel</a>&amp;);
<a name="l00079"></a>00079         <span class="keywordtype">double</span> operator[](<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;
<a name="l00080"></a>00080         <span class="keywordtype">double</span>&amp; operator[](<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i);
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 
<a name="l00084"></a>00084         <span class="comment">//Pixel operator*(const float);</span>
<a name="l00085"></a>00085         
<a name="l00086"></a>00086 <span class="keyword">private</span>:
<a name="l00087"></a>00087         <span class="comment">//byte r; /*!&lt;Valeur rouge*/</span>
<a name="l00088"></a>00088         <span class="comment">//byte v; /*!&lt;Valeur verte*/</span>
<a name="l00089"></a>00089         <span class="comment">//byte b; /*!&lt;Valeur bleu*/</span>
<a name="l00090"></a><a class="code" href="class_pixel.html#abda60830711137ac566a4231d215cbb8">00090</a>         byte <a class="code" href="class_pixel.html#abda60830711137ac566a4231d215cbb8">v</a>[3]; 
<a name="l00091"></a>00091 };
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Généré le Mon May 3 11:24:39 2010 pour Inpainting par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
